package com.happyscan138.makefun.model;

import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;

/**
 * Created by Administrator on 2017/5/18.
 */

public class MyTextWatcherLisnter implements TextWatcher {
    private String inputText;
    private EditText editText;
    public MyTextWatcherLisnter(String inputText,EditText editText){
        this.inputText=inputText;
        this.editText=editText;
    }
    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {

    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {

    }

    @Override
    public void afterTextChanged(Editable s) {
        inputText=editText.getText().toString();

    }
}
